package hsh.second;

import java.util.Random;
public class arrayPrint {
    public static void main(String[] args){
        Random r = new Random();
        int sum = 0;
        int [] arr = new int[6];
        for(int i = 0 ;i<arr.length;i++){
            int cun = r.nextInt(100);
            arr[i] = cun;
            sum += arr[i];
            System.out.print(arr[i]+"");

            }
        System.out.println("\n"+"六个随机数求和结果："+sum);



    }


}
